package com.example.wechat;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Intent intent=this.getIntent();
        Bundle bundle=intent.getExtras();
        String phone=bundle.getString("phone");
        String paswd=bundle.getString("paswd");
        String sex=bundle.getString("sex");
        String hobby=bundle.getString("hobby");
        String city=bundle.getString("city");
        TextView show_text=findViewById(R.id.show_content);
        show_text.setText("手机号为："+phone+"\n"+"密码为："+paswd+"\n"+
                "性别是"+sex+"\n"+"爱好是："+hobby+"\n"+"城市是"+city);
    }
}